LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-29-2025, 10:27 AM   #1
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Rep: Reputation: 15
Fresh SLACK15 [No Current] Install always Kernel Panic after reboot


Hi

So this PC has had slack live, ubuntu and several other recent distros installed and working fine. I decided to just do a slack 15 install. The HD is an M.2 SSD 500GIG Memory is 32GB etc.
I boot off usb, I create the 2 partitions [Swap and Ext], I format both and choose FULL install. I do install lilo automatically on MBR, set up my network and all the normal stuff we've done for 30 years.
I reboot and stops half way really fast I can not read and KERNEL PANIC.

At this stage I have no other data. Just figured I would see what next steps I can take. I have tried installing it 4 times, format etc each time in case, to no avail. I reinstall slacklive and all is fine.
 
Old 01-29-2025, 12:56 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,505

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
Did you create an initrd.gz file? Did you remember to run the command lilo to write the new information to the mbr?
 
Old 01-29-2025, 01:02 PM   #3
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camorri View Post
Did you create an initrd.gz file? Did you remember to run the command lilo to write the new information to the mbr?
In truth, I did not run 'lilo'. I guess I assumed the install would have? When I reboot, it shows Linux as the only bootable OS and I hit it, it goes through a good amount until Kernel Panic. I will go home and do it again and make sure to do so. Also, I never had to create an initrd.gz file... Honestly maybe I have been lucky or running a system not fully because of it, but I have never... Meaning, Not sure what it is or how to enable/run it. Sorry..
 
Old 01-29-2025, 01:11 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,505

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
I don't think 15.0 has the ext4 support in the kernel, I have always had to gen an initrd, add it to the lilo.conf file, and run lilo to write out to the mbr.

I usually use /usr/share/minitrd/mkinitrd_command_generator.sh -k 5.xx.yyy to get the line to run. You simply copy the generated line, paste it back in the terminal, press enter. It builds a new initrd.gz file.

Edit elilo.conf and add the informaiton, run lilo.
 
Old 01-29-2025, 01:15 PM   #5
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camorri View Post
I don't think 15.0 has the ext4 support in the kernel, I have always had to gen an initrd, add it to the lilo.conf file, and run lilo to write out to the mbr.

I usually use /usr/share/minitrd/mkinitrd_command_generator.sh -k 5.xx.yyy to get the line to run. You simply copy the generated line, paste it back in the terminal, press enter. It builds a new initrd.gz file.

Edit elilo.conf and add the informaiton, run lilo.
Pardon my ignorance, but what exactly do I add to lilo? The generated line?

This? initrd = /boot/initrd.gz

Last edited by BAcidEvil; 01-29-2025 at 01:20 PM.
 
Old 01-29-2025, 01:25 PM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,505

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
Here is one of my legacy BIOS systems lilo.conf, just the lines I need to add.

Code:
image = /boot/vmlinuz-generic
  initrd = /boot/initrd-161.gz
  root = /dev/sda1
  label = generic
  read-only
image = /boot/vmlinuz
  root = /dev/sda1
  label = huge
  read-only
The first entry is for the generic kernel with the name I gave the initrd file when I created it. The 161 I add so I know what kernel I gened to for. That is not necessary. The default name of initrd.gz is fine if that is what you want.

The second entry is so I can boot the huge kernel. That is not necessary either.

Once the editing is done, save the file and run as root, lilo. That is it.

Hope this helps.
 
Old 01-29-2025, 01:31 PM   #7
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camorri View Post
Here is one of my legacy BIOS systems lilo.conf, just the lines I need to add.

Code:
image = /boot/vmlinuz-generic
  initrd = /boot/initrd-161.gz
  root = /dev/sda1
  label = generic
  read-only
image = /boot/vmlinuz
  root = /dev/sda1
  label = huge
  read-only
The first entry is for the generic kernel with the name I gave the initrd file when I created it. The 161 I add so I know what kernel I gened to for. That is not necessary. The default name of initrd.gz is fine if that is what you want.

The second entry is so I can boot the huge kernel. That is not necessary either.

Once the editing is done, save the file and run as root, lilo. That is it.

Hope this helps.
Absolutely! Thank you... One last question; do you think I can boot off usb thumb and don't touch anything and be able to modify lilo and make the initrd without having to install it all again or does booting usb kinda out it in a shell of it's own?
 
Old 01-29-2025, 03:50 PM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,505

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
Quote:
do you think I can boot off usb thumb and don't touch anything and be able to modify lilo and make the initrd without having to install it all again or does booting usb kinda out it in a shell of it's own?
Yes, you should be able to boot from the thumb drive and chroot into the installe on the HD. Modifying the file /etc/lilo.conf file is just editing it. Once done, run lilo command, and try to boot from the HD. I have done that in the past with I forgot to update the mbr, or had a finger check.

I believe you can find help on the Slackware help for chrooting if you need it.

Here is a link to chrooting. You can always duckduckgo chroot and find examples.

https://docs.slackware.com/howtos:ge...ackware_chroot
 
Old 01-29-2025, 05:54 PM   #9
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by camorri View Post
Yes, you should be able to boot from the thumb drive and chroot into the installe on the HD. Modifying the file /etc/lilo.conf file is just editing it. Once done, run lilo command, and try to boot from the HD. I have done that in the past with I forgot to update the mbr, or had a finger check.

I believe you can find help on the Slackware help for chrooting if you need it.

Here is a link to chrooting. You can always duckduckgo chroot and find examples.

https://docs.slackware.com/howtos:ge...ackware_chroot
Nice, so unless I am reading it wrong.
My /dev/nvme.x.y.z is 2 partitons... Swap file and /. I would mount /dev/nvme.x.y.x/ to /mnt if needed but if I can run lilo just off the USB I will try that first... If that does not work I suppose I will have to reinstall, but at what point can I do the init script? Can I too run that off the usb boot?
 
Old 01-29-2025, 08:41 PM   #10
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Well this blows.
Booted off miss disk, lilo command not found.
So, decided to reinstall but instead of reboot I ran lilo;

Fatal: Cannot open: /etc/lilo.conf

tried to edit the file;

Error while loading shared libraries: Linda-2.4.so.2: cannot open shared object file: no such file or directory.

And /usr/share/minitrd doesn’t exist
 
Old 01-29-2025, 09:27 PM   #11
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 365

Rep: Reputation: Disabled
Quote:
Originally Posted by BAcidEvil View Post
Fatal: Cannot open: /etc/lilo.conf

tried to edit the file;
I am wondering whether your system is using elilo.

What folders are in boot?

If there is a /boot/efi/EFI/Slackware/elilo file your system is probably using elilo. ..... Which is a different kettle of fish.
 
Old 01-29-2025, 09:57 PM   #12
protozoaire
LQ Newbie
 
Registered: Nov 2023
Location: Quebec, Canada
Distribution: Slackware
Posts: 6

Rep: Reputation: 3
Some solutions proposed above will probably work, using example kernel-generic + initrd

I am pretty sure slackware-15.0 auto Lilo install on Legacy (= CMS) MBR works on most MBR systems,
with (default, in orig, unpatched, slackware64-15.0 installation ISO):
Quote:
kernel-generic-5.15.19-x86_64-2 OR kernel-huge-5.15.19-x86_64-2
This, after some not so quick Internet searches (search engines less and less specific).

Some references "proving" it:
Quote:
- (orig, unpathed) slackware64-15.0/ChangeLog.txt, Mon Feb 26 21:32:03 UTC 2018
a/lilo-24.2-x86_64-6.txz: Rebuilt. // Support NVMe devices. Thanks to timsoft.

- http://www.linuxquestions.org/questi...un-4175720382/
2022-12-31T21:15Z / post #1 / arfon / Slackware 15, EFI, & NVMe - fun on the bun...
#jpCmt !!!! NOT in post, opening 3 paren 'closed' that follow (((
3) Slackware (unlike old posts that I read) now supports NVMe drives, no problems.
4) Asus' legacy support is broken.
5) Asus' BIOS UI blows ass. (The boot setup is 3 tabs deep, the last one called CMS Configuration)
Possible problems with default Lilo install
- problems of MBR boot from GPT partioned drive (vs MBR partitioned), as on my old Lenovo Thinkpad T520,
(NOT booting by a USB liveslak Live slackware64-current partioned GPT, boot if convert USB to MBR patitions)
- others? Some NVMe drives not supported by slackware 15.0

Good luck.
-- Jean-Pierre Grand-Père de Protozoaire
 
Old 01-29-2025, 10:58 PM   #13
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by quickbreakfast View Post
I am wondering whether your system is using elilo.

What folders are in boot?

If there is a /boot/efi/EFI/Slackware/elilo file your system is probably using elilo. ..... Which is a different kettle of fish.
This is what boot looks like
Attached Thumbnails
Click image for larger version

Name:	IMG_0698.jpg
Views:	18
Size:	256.1 KB
ID:	44228  
 
Old 01-29-2025, 11:07 PM   #14
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 15-Current
Posts: 375

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by protozoaire View Post
Some solutions proposed above will probably work, using example kernel-generic + initrd

I am pretty sure slackware-15.0 auto Lilo install on Legacy (= CMS) MBR works on most MBR systems,
with (default, in orig, unpatched, slackware64-15.0 installation ISO):

This, after some not so quick Internet searches (search engines less and less specific).

Some references "proving" it:


Possible problems with default Lilo install
- problems of MBR boot from GPT partioned drive (vs MBR partitioned), as on my old Lenovo Thinkpad T520,
(NOT booting by a USB liveslak Live slackware64-current partioned GPT, boot if convert USB to MBR patitions)
- others? Some NVMe drives not supported by slackware 15.0

Good luck.
-- Jean-Pierre Grand-Père de Protozoaire
Honestly that’s all above my knowledge. All I know for fact is uninstall this same ISO on this same PC 2 months ago it it installed and rebooted flawlessly. I went and tried Ubuntu out of boredom and didn’t like it, installed slack live, liked it but decided I didn’t want current on my day to day so went back to slack 15 and now it won’t install. … or.. reboot without kernel panic
 
Old 01-30-2025, 06:15 AM   #15
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,505

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
Since there is a question of is the partitioning mbr or gpt. You can tell if you run the command fdisk -l.

Here is the output of the command on a mbr partitioned disk.

Code:
root@alienware:~# fdisk -l
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WD Blue SA510 2.
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd3c5d4d8

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 104859647 104857600    50G 83 Linux
/dev/sda2       104859648 130025471  25165824    12G 82 Linux swap
/dev/sda3       130025472 976773167 846747696 403.8G 83 Linux
Notice the Disklabel type: dos; this is a mbr partitioning. If it is gpt it will say gpt. Since I haven't run Ubuntu inwell over 10 years, I can not say what that install might have done to your partitioning. If it is gpt, that will cause issues as far as I know.

At this point if you deide to re-install, delete the partitions, and re-partition the drive as mbr (dos). Then re-install.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack15 k 5.15.145 not support 12th gen igpu; -current does rwwff Slackware 3 04-23-2024 02:02 PM
slack15 install dvd stalls udevadm slackbat Slackware 10 06-25-2022 05:46 AM
New install Slack15, wifi won't connect to router. camorri Slackware 14 04-26-2022 06:04 AM
[SOLVED] upgrade to Slack15-alpha from kernel 5.10.15 fails however Slackware 13 02-21-2021 11:47 PM
Command ls --color=always, can always be always Kevin Tough Linux - Newbie 1 09-08-2005 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 06:14 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions